package org.zfm.org.domain.dto;

import org.zfm.org.domain.Shop;
import org.zfm.org.domain.ShopAuditLog;

import java.util.Objects;

public class AuditShopDto {
    private Shop shop;//店铺信息
    private ShopAuditLog shopAuditLog;//店铺审核日志

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public ShopAuditLog getShopAuditLog() {
        return shopAuditLog;
    }

    public void setShopAuditLog(ShopAuditLog shopAuditLog) {
        this.shopAuditLog = shopAuditLog;
    }

    public AuditShopDto(Shop shop, ShopAuditLog shopAuditLog) {
        this.shop = shop;
        this.shopAuditLog = shopAuditLog;
    }

    public AuditShopDto() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AuditShopDto that = (AuditShopDto) o;
        return Objects.equals(shop, that.shop) && Objects.equals(shopAuditLog, that.shopAuditLog);
    }

    @Override
    public int hashCode() {
        return Objects.hash(shop, shopAuditLog);
    }

    @Override
    public String toString() {
        return "AuditShopDto{" +
                "shop=" + shop +
                ", shopAuditLog=" + shopAuditLog +
                '}';
    }
}
